import { openBuildService } from "../../helper/service";

// 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
  // 温湿度查询
  getHumiture: {
    url: "proxy/hum/getHumitureLiftForm",
    method: "get"
  },
  // 编辑温湿度
  editHumiture: {
    url: "proxy/hum/edit",
    method: "post"
  },
  // 删除温湿度
  deleteHumiture: {
    url: "proxy/hum/delete",
    method: "delete"
  },
  // 机器人名称下拉列表
  getRobotNameBox: {
    url: "/robot/web/v1/common_box/robot_box",
    method: "get"
  },
  // 机器狗未绑定列表
  getRobotNotBindList: {
    url: "/robot/web/v1/robot/not_bind_list",
    method: "get"
  },
  // 摄像管理-设备编号下拉列表
  getCameraSnBox: {
    url: "/robot/web/v1/camera/sn_box",
    method: "get"
  },
  // 摄像管理-列表
  getCameraList: {
    url: "/robot/web/v1/camera/list",
    method: "get"
  },
  // 摄像管理-新增/修改摄像头
  setCameras: {
    url: "/robot/web/v1/camera/save",
    method: "post"
  },
  // 摄像管理- 绑定/解绑/删除
  operateCamera: {
    url: "/robot/web/v1/camera/operate",
    method: "put"
  },
  // 温湿度设备编号下拉列表
  getTempSnBox: {
    url: "/robot/web/v1/temp/sn_box",
    method: "get"
  },
  // 温湿度管理-列表
  getTempList: {
    url: "/robot/web/v1/temp/list",
    method: "get"
  },
  // 温湿度管理-新增/修改
  setTemps: {
    url: "/robot/web/v1/temp/save",
    method: "post"
  },
  // 温湿度管理-绑定/解绑/删除
  operateTemp: {
    url: "/robot/web/v1/temp/operate",
    method: "put"
  }
};

export default openBuildService(settings);
